package com.april.pattern.creational.factory.simplefactory;

import org.junit.jupiter.api.Test;

/**
 * @author April
 * @version V1.0.0
 * @date 2019/06/22 20:03
 * @description 简单工厂方法测试
 */
public class SimpleFactoryTest {
    @Test
    public void simpleFactoryTest() {
        VideoFactory videoFactory = new VideoFactory();
        AbstractVideo javaVideo = videoFactory.getVideo("java");
        javaVideo.produce();
    }
}
